package com.weight.system.project.service.impl;

import com.weight.system.project.PO.ProjectUserBizRal;
import com.weight.system.project.service.ProjectUserBizRalService;
import com.weight.system.project.DAO.ProjectUserBizRalMapper;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import org.springframework.transaction.annotation.Transactional;
import com.weight.common.util.CommonUtils;
import lombok.extern.slf4j.Slf4j;

/**
 * 项目人员关系表
 */
@Service
@Transactional
@Slf4j
public class ProjectUserBizRalServiceImpl implements ProjectUserBizRalService {

	@Autowired
	private ProjectUserBizRalMapper projectUserBizRalMapper;


	/**
	 * ID查询项目人员关系信息
	 * @param map
	 * @return
	 */
	@Override
	public List<ProjectUserBizRal> findByProjInfoId(Map map){
		List<ProjectUserBizRal> projectUserBizRalList=projectUserBizRalMapper.findByProjInfoId(map);
		return projectUserBizRalList;
	}
	public List<ProjectUserBizRal> findByT(Map map){
		List<ProjectUserBizRal> projectUserBizRalList=projectUserBizRalMapper.findByT(map);
		return projectUserBizRalList;
	}
	/**
	 * 批量添加项目人员关系
	 * @param projectUserBizRalList
	 */
	@Override
	public void insertProjectUserBizRalBatch(List<ProjectUserBizRal> projectUserBizRalList){
		projectUserBizRalMapper.insertProjectUserBizRalBatch(projectUserBizRalList);
	}

	/**
	 * 物理删除项目人员关系
	 * @param map
	 */
	@Override
	public void deleteByProjInfoId(Map map){
		projectUserBizRalMapper.deleteByProjInfoId(map);
	}

}